package com.zhou.base.components.bs.common.exception;


import com.zhou.base.components.bs.common.exception.base.BaseException;

import static com.zhou.base.components.bs.common.enums.ResponseEnum.SERVICE_EXCEPTION;

/**
 * 业务异常
 *
 * @author ruoyi
 */
public final class ServiceException extends BaseException {
    private static final long serialVersionUID = 1L;


    public ServiceException() {
        super(SERVICE_EXCEPTION.getCode(), SERVICE_EXCEPTION.getMsg(), null, null);
    }

    public ServiceException(String message) {
        super(SERVICE_EXCEPTION.getCode(), message, null, null);
    }

    public ServiceException(String message, Integer code) {
        super(code, message, null, null);
    }
}
